package model

import "time"

type FailedPathPlan struct {
	Uuid           string         `bson:"uuid"`
	AgvID          string         `bson:"agv_id"`
	BlockAgv       string         `bson:"block_agv"`
	MapName        string         `bson:"map_name"`
	FailedTaskType FailedTaskType `bson:"failed_task_type"`
	LastTime       time.Time      `bson:"last_time"`
}

type FailedTaskType uint8

const (
	PathPlanFailed FailedTaskType = 1 //路径规划失败
	AgvBreakTask   FailedTaskType = 2 //Agv中断的任务
)

func (FailedPathPlan) TableName() string {
	return "t_running_failed_path_plan"
}
